@extends('admin.layouts.app')
@section('css')
@endsection

@section('content')
<div class="">
	<div class="page-title">
		<div class="title_left">
			<h3>关注欢迎词</h3>
		</div>
	</div>

	<div class="clearfix"></div>
	@include('flash::message')
	<div class="row">
		<div class="col-md-12 col-sm-12 col-xs-12">
			<div class="x_panel">
				<div class="x_title">
					<h2>编辑欢迎词</h2>
					<div class="clearfix"></div>
				</div>
				<div class="x_content">
					<br />
					<form class="form-horizontal form-label-left" action="{{route('welcome.save')}}" method="post">
						{{ csrf_field() }}
						<input type="hidden" name="id" value="{{$welcome['id']}}" />
						<div class="form-group{{ $errors->has('value') ? ' has-error' : '' }}">
							<label class="control-label col-md-3 col-sm-3 col-xs-12">欢迎词<span class="required">*</span> </label>
							<div class="col-md-6 col-sm-6 col-xs-12">
								<textarea class="form-control" name="value" rows="5">{{old('value')?old('value'):$welcome['value']}}</textarea>
								@if ($errors->has('value'))
								<span class="help-block"> <strong>{{ $errors->first('value') }}</strong> </span>
								@endif
							</div>
						</div>
						
						<div class="ln_solid"></div>
						<div class="form-group">
							<div class="col-xs-12 text-center">
								<button type="submit" class="btn btn-success">
								提交
								</button>
							</div>
						</div>

					</form>
				</div>
			</div>
		</div>
	</div>
</div>
@endsection

@section('js')

@endsection
